package com.bud2cloud.controller;

import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 无权限管理的首页，即无管理员模块
 * @author bud
 */
@ConditionalOnExpression("${cms.user.disabled}")
@Controller
public class IndexController {
    @RequestMapping(value = {"/index.html", "/"}, method = RequestMethod.GET)
    public String index() {
        return "index";
    }
}
